
// import { lazy } from "react";
import { prefixRoute } from "../config"
import Home from "../pages/home"
import echartPage  from "../pages/echartPage"
import hooksPage  from "../pages/hooksPages"
import demoPage  from "../pages/demoPage"
import antdPage from "../pages/antdPage"
import baiduMap from "../pages/baiduMap"
import nginx from "../pages/remHome"
import qfw from "../pages/qfw"
const allRouters = [
        {
           tag: "Redirect",
           from : "/",
           to: prefixRoute + "/home",
           exact: true,
        },
        {
            tag: "Route",
            from: "首页",
            path: prefixRoute + "/home",
            component: Home,
            exact:true,
        },
        {
            tag: "Route",
            from: "echart模块",
            path: prefixRoute + "/pages/echart",
            component: echartPage,
            exact:true,
        },
        {
            tag: "Route",
            from: "Hooks模块",
            path: prefixRoute + "/pages/hooksPage",
            component: hooksPage,
            exact:true,
        },
        {
            tag: "Route",
            from: "小demo",
            path: prefixRoute + "/pages/demoPage",
            component:demoPage,
            exact: true,
        },
        {
            tag: "Route",
            from:'antd模块',
            path: prefixRoute + "/pages/antdPage",
            component:antdPage,
            exact:true,
        },
        {
            tag: "Route",
            from:'antd模块',
            path: prefixRoute + "/pages/baiduMap",
            component:baiduMap,
            exact:true,
        },
        {
            tag: "h5页面",
            path: prefixRoute + "/pages/nginx",
            component:nginx,
            exact:true,
        },
        {
            tag: "h5页面2",
            path: prefixRoute + "/pages/qfw",
            component:qfw,
            exact:true, 
        }

    ]
export default allRouters;